#include "myinput.h"


void KeyboardState::flush()
{
	keyChar = 0;
	for (int i = 0; i < KEY_COUNT; i++)
	{
		key[i] = 0;
		keyPressed[i] = 0;
		keyReleased[i] = 0;
	}
}

void KeyboardState::reset()
{
	keyChar = 0;
	for (int i = 0; i < KEY_COUNT; i++)
	{
		keyPressed[i] = 0;
		keyReleased[i] = 0;
	}
}


void MouseState::flush()
{
	x = 0;
	y = 0;
	deltaX = 0;
	deltaY = 0;
	deltaWheel = 0;
	for (int i = 0; i < MOUSE_COUNT; i++)
	{
		button[i] = 0;
		buttonPressed[i] = 0;
		buttonReleased[i] = 0;
	}
}

void MouseState::reset()
{
	deltaX = 0;
	deltaY = 0;
	deltaWheel = 0;
	for (int i = 0; i < MOUSE_COUNT; i++)
	{
		buttonPressed[i] = 0;
		buttonReleased[i] = 0;
	}
}


void JoyState::flush()
{
	axisX = 0;
	axisY = 0;
	for (int i=0; i<32; i++)
		button[i] = 0;
}

